package muview;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Shell;

import org.eclipse.swt.widgets.MessageBox;

public class DialogMessage {

	public static boolean open(Shell shell, String title, String message, int icon) {
		MessageBox messageBox = new MessageBox(shell, icon
				| SWT.OK );
		messageBox.setMessage(title);
		messageBox.setText(message);
		int response = messageBox.open();
		if (response == SWT.YES)
			return true;
		else
			return false;
	}
}